package com.link2room.soundwave.entity;

import com.link2room.common.entity.BaseEntity;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by VegetaKo on 2016/12/9.
 */
@Entity
@DynamicInsert
@Table(name = "l2r_ipms2_rmtype", catalog = "")
public class L2RIpms2Rmtype  extends BaseEntity{
    private String hotelId;
    private String hotelGroupId;
    private String l2RRmtype;
    private String l2RRmtypeName;
    private String pmsRmtype;
    private String pmsRmtypeName;

    @Basic
    @Column(name = "hotel_id", nullable = false, length = 20)
    public String getHotelId() {
        return hotelId;
    }

    public void setHotelId(String hotelId) {
        this.hotelId = hotelId;
    }

    @Basic
    @Column(name = "hotel_group_id", nullable = false, length = 20)
    public String getHotelGroupId() {
        return hotelGroupId;
    }

    public void setHotelGroupId(String hotelGroupId) {
        this.hotelGroupId = hotelGroupId;
    }

    @Basic
    @Column(name = "l2r_rmtype", nullable = true, length = 60)
    public String getL2RRmtype() {
        return l2RRmtype;
    }

    public void setL2RRmtype(String l2RRmtype) {
        this.l2RRmtype = l2RRmtype;
    }

    @Basic
    @Column(name = "l2r_rmtype_name", nullable = true, length = 60)
    public String getL2RRmtypeName() {
        return l2RRmtypeName;
    }

    public void setL2RRmtypeName(String l2RRmtypeName) {
        this.l2RRmtypeName = l2RRmtypeName;
    }

    @Basic
    @Column(name = "pms_rmtype", nullable = true, length = 60)
    public String getPmsRmtype() {
        return pmsRmtype;
    }

    public void setPmsRmtype(String pmsRmtype) {
        this.pmsRmtype = pmsRmtype;
    }

    @Basic
    @Column(name = "pms_rmtype_name", nullable = true, length = 60)
    public String getPmsRmtypeName() {
        return pmsRmtypeName;
    }

    public void setPmsRmtypeName(String pmsRmtypeName) {
        this.pmsRmtypeName = pmsRmtypeName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        L2RIpms2Rmtype that = (L2RIpms2Rmtype) o;

        if (hotelId != null ? !hotelId.equals(that.hotelId) : that.hotelId != null) return false;
        if (hotelGroupId != null ? !hotelGroupId.equals(that.hotelGroupId) : that.hotelGroupId != null) return false;
        if (l2RRmtype != null ? !l2RRmtype.equals(that.l2RRmtype) : that.l2RRmtype != null) return false;
        if (l2RRmtypeName != null ? !l2RRmtypeName.equals(that.l2RRmtypeName) : that.l2RRmtypeName != null) return false;
        if (pmsRmtype != null ? !pmsRmtype.equals(that.pmsRmtype) : that.pmsRmtype != null) return false;
        if (pmsRmtypeName != null ? !pmsRmtypeName.equals(that.pmsRmtypeName) : that.pmsRmtypeName != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = hotelId != null ? hotelId.hashCode() : 0;
        result = 31 * result + (hotelGroupId != null ? hotelGroupId.hashCode() : 0);
        result = 31 * result + (l2RRmtype != null ? l2RRmtype.hashCode() : 0);
        result = 31 * result + (l2RRmtypeName != null ? l2RRmtypeName.hashCode() : 0);
        result = 31 * result + (pmsRmtype != null ? pmsRmtype.hashCode() : 0);
        result = 31 * result + (pmsRmtypeName != null ? pmsRmtypeName.hashCode() : 0);
        return result;
    }
}
